/**
 * @ Authors:
 * 
 * @Veronique De Laet
 * @Johan Willems
 * @Pierre Delaere
 * 
 * @version 2011
 */
package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JComboBox;
import javax.swing.JTable;

import model.Cursist;
import model.container.Cursisten;
import model.container.Cursussen;
import java.awt.TextArea;
import java.awt.Rectangle;
import java.awt.Component;
import javax.swing.SwingConstants;

public class CursusRooster extends JFrame {

	private JPanel contentPane;
	private final JLabel lblNewLabel_1 = new JLabel("New label");

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					CursusRooster frame = new CursusRooster();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	
	

	/**
	 * Create the frame.
	 */
	public CursusRooster() {
		super("Overzicht cursussen student" );
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 610, 537);
		getContentPane().add(lblNewLabel_1, BorderLayout.NORTH);
		/**contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		*/
		
		JLabel lblCursussen = new JLabel("Selecteer Cursist");
		lblCursussen.setBounds(20, 20, 300, 30);
		
		JLabel lblNewLabel = new JLabel("Selecteer cursist");
		lblNewLabel.setBounds(new Rectangle(20, 20, 100, 30));
		lblNewLabel.setAlignmentY(Component.BOTTOM_ALIGNMENT);
		lblNewLabel.setAlignmentX(Component.RIGHT_ALIGNMENT);
		//contentPane.add(lblNewLabel, BorderLayout.NORTH);
		
		TextArea textArea = new TextArea();
		textArea.setBounds(new Rectangle(500, 100, 50, 50));
		//contentPane.add(textArea, BorderLayout.CENTER);
		
		JComboBox comboBox = new JComboBox();
		//contentPane.add(comboBox, BorderLayout.EAST);
		for (Cursist cursist : Cursisten.cursistenLijst.values()) {
			comboBox.addItem((Cursist) cursist);
		}	
	}
}
